<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#import "/layout/select.ftl" as my/>
<#assign css>
<#--此ftl中用到的css-->
    <style>
        .col-sm-9 {
            padding-top: 7px;
        }
    </style>
</#assign>
<#assign js>
<#--此ftl中用到的js-->
    <script>
    </script>
</#assign>
<@layout title="详情" active="agent">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <small>分站管理详细信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-home"></i> 管理后台</a></li>
            <li><a href="#"><i class="fa fa-list-ul"></i> 分站管理管理</a></li>
            <li class="active"><i class="fa fa-edit"></i>详细信息</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <!-- Default box -->
                <div class="box  box-primary">
                    <form class="form-horizontal form-edit" method="post" action="">
                        <div class="box-body">
                            <input type="hidden" id="id" name="id" value="${agent.id!}">
                            <div class="form-group"><label class="col-sm-3 control-label">分站id：</label>
                                <div class="col-sm-9">${agent.id!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">区县名称：</label>
                                <div class="col-sm-9">${agent.name!}</div>
                            </div>
                            <#--<div class="form-group"><label class="col-sm-3 control-label">分站联系人：</label>
                                <div class="col-sm-9">${agent.contact!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">联系人头像：</label>
                                <div class="col-sm-9">
                                    <img src="/${agent.headPic}">
                                </div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">联系人：</label>
                                <div class="col-sm-9">${agent.phone!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">联系地址：</label>
                                <div class="col-sm-9">${agent.address!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">开通时间：</label>
                                <div class="col-sm-9">${(agent.openAt?string('yyyy-MM-dd HH:mm:ss'))!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">开通状态 ：</label>
                                <div class="col-sm-9">${convert('AGENT_STATUS', agent.stat)!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">开通人：</label>
                                <div class="col-sm-9">${agent.openBy!}</div>
                            </div>-->
                            <#--<div class="form-group"><label class="col-sm-3 control-label">深夜服务开始时间：</label>
                                <div class="col-sm-9">${agent.nightS!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">深夜服务结束时间：</label>
                                <div class="col-sm-9">${agent.nightE!}</div>
                            </div>-->
                            <div class="form-group"><label class="col-sm-3 control-label">奖励金额：</label>
                                <div class="col-sm-9">${agent.award!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">取消订单扣款比例：</label>
                                <div class="col-sm-9">${agent.cancelOrder!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">抽成比例(%)：</label>
                                <div class="col-sm-9">${agent.proportion!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">派单方式：</label>
                                <div class="col-sm-9">
                                    <#if agent.dispatchType?? && agent.dispatchType == 'auto'>
                                        自动
                                    <#else>
                                        人工或抢单
                                    </#if>
                                </div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">余额：</label>
                                <div class="col-sm-9">${agent.balance?string('0.00')!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">保证金：</label>
                                <div class="col-sm-9">${agent.margin?string('0.00')!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">跑腿自动取消时间（分钟）：</label>
                                <div class="col-sm-9">${agent.paotuiCtime!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">其他服务自动取消时间（分钟）：</label>
                                <div class="col-sm-9">${agent.otherCtime!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">自动派单改派次数：</label>
                                <div class="col-sm-9">${agent.autoCount!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">三公里内预计送达时间（分钟）：</label>
                                <div class="col-sm-9">${agent.initTime!}</div>
                            </div>
                            <div class="form-group"><label class="col-sm-3 control-label">每超一公里增加时间（分钟）：</label>
                                <div class="col-sm-9">${agent.extraTime!}</div>
                            </div>
                        </div>

                        <div class="box-footer">
                            <button type="button" class="btn btn-default btn-back">返回</button>
                        </div>

                    </form>
                </div>
                <!-- /.box -->
            </div>
        </div>
    </section>
    <!-- /.content -->
</@layout>
